package com.qst.crop.demo.mapper;


import com.qst.crop.demo.entity.Knowledge;
import com.qst.crop.demo.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.util.List;

@Mapper
public interface QuesMapper {

    int add(String questioner, String title, String description, String imagePath, Date createdDate);

    int deleteById(long questionId);

    Question getQuesById(long questionId);

    List<Question> select(String searchWord);

}
